import Vue from "vue";
import VueRouter from "vue-router";
import HomeView from "../views/HomeView.vue";

Vue.use(VueRouter);

const routes = [
  {
    path: "/index",
    name: "index",
    component: () => import("../views/Index.vue"),
    children: [
      {
        path: "/movie",
        name: "movie",
        component: () => import("../views/Movie.vue"),
      },
      {
        path: "/video",
        name: "video",
        component: () => import("../views/Video.vue"),
      },
      {
        path: "/svideo",
        name: "svideo",
        component: () => import("../views/Svideo.vue"),
      },
      {
        path: "/my",
        name: "my",
        component: () => import("../views/My.vue"),
      },
    ],
  },
  {
    path: "/show",
    name: "show",
    component: () => import("../views/Show.vue"),
    children: [
      {
        path: "/home",
        name: "home",
        component: HomeView,
      },
      {
        path: "/about",
        name: "about",

        component: () => import("../views/AboutView.vue"),
      },
    ],
  },
];

const router = new VueRouter({
  routes,
});

export default router;
